package com.kfm.jdbc.day0406;

import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class UUIDDemo {

    public static void main(String[] args) {

        ExecutorService executorService = Executors.newCachedThreadPool();
        for (int i = 0; i < 10; i++) {
            executorService.submit(() -> {
                for (int j = 0; j < 10; j++) {
                    UUID uuid = UUID.randomUUID();
                    System.out.println(uuid.toString());

//            System.out.println(System.currentTimeMillis());
//            System.out.println(System.nanoTime());
                }
            });
        }


    }
}
